# anilam.py

from __future__ import division

import string

from ot_simulator.output import dest_machine, transformer
from ot_simulator import transform

class series_1100(dest_machine.g_code):
    r'''Mike Brook's 3 axis mill.

    This has it's own language.  It doesn't like G-Code very well...
    '''
    G_code_start  = string.Template("")
    G_code_change = string.Template("")
    G_code_stop   = ""
    G_code_break  = "Dwell 0\n"
    G_code_lineno = ""
    G_code_offset = ""
    G_code_rapid  = "Rapid "
    G_code_line   = "Line "
    G_code_feed   = " Feed {feed:.4f}"

    def __init__(self, outputer, x_offset=0.0, y_offset=0.0, z_offset=0.0,
                 comments=()):
        dest_machine.g_code.__init__(self,
          transformer.transform_3t_0r(
            x_offset=x_offset, y_offset=y_offset, z_offset=z_offset),
          outputer,
          comments=comments)

